A pass rendering the scene, using only one shader to render all the meshes enqueued. More...
Public Member Functions | |
Shader * | getLinkedShader () const |
virtual void | setLinkedShader (Shader *shade) |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
![]() | |
int | getMinRQ () const |
int | getMaxRQ () const |
RenderQueue * | getSpecialRQ () const |
Camera * | getRenderCam () const |
Camera * | getCullingCam () const |
Camera * | getLodCam () const |
BlendState * | getBlendState () const |
RasterState * | getRasterState () const |
DepthStencilState * | getDepthStencilState () const |
bool | isTransparentPass () const |
void | setMinRQ (int value) |
void | setMaxRQ (int value) |
void | setSpecialRQ (const char *name) |
void | setRenderCam (Camera *cam) |
void | setCullingCam (Camera *cam) |
void | setLodCam (Camera *cam) |
virtual void | setBlendState (BlendState *state) |
virtual void | setRasterState (RasterState *state) |
virtual void | setDepthStencilState (DepthStencilState *state) |
void | setTransparentPass (bool value) |
![]() | |
TargetOperations * | getParentTargetOperations () const |
PASS_TYPE | getPassType () const |
const char * | getName () const |
void | setParentTargetOperations (TargetOperations *parent) |
void | setName (const char *name) |
virtual void | render ()=0 |
![]() | |
Exportable () | |
virtual | ~Exportable () |
A pass rendering the scene, using only one shader to render all the meshes enqueued.
This type of pass will ignore all materials set per Entity in the RenderQueu. It is useful for deferred rendering (G-buffer filling), or shadow map rendering, for instance.
See TargetOperations::addMonoMaterialPass() to use it.
Shader* nkGraphics::MonoMaterialPass::getLinkedShader | ( | ) | const |
|
virtual |
Sets the shader to use to render all instances.
shade | The shader to use. |
|
overridevirtual |
Basic exporting capabilities.
rootNode | The tree to export to. |
Reimplemented from nkGraphics::RenderScenePass.
|
overridevirtual |
Basic importing capabilities.
rootNode | The tree to import from. |
Reimplemented from nkGraphics::RenderScenePass.